import request from '@/utils/request'

// 获取载体列表
export function getTableList(query) {
  return request({
    url: '/cqbc/yqCarrierManage/list',
    method: 'get',
    params: query
  })
}

//新增载体
export function addItem(data) {
  return request({
    url: '/cqbc/yqCarrierManage/addItem',
    method: 'POST',
    data: data
  })
}
//编辑载体
export function editItem(data) {
  return request({
    url: '/cqbc/yqCarrierManage/editItem',
    method: 'PUT',
    data: data
  })
}

//载体管理详情
export function yqCarrierManage(id) {
  return request({
    url: '/cqbc/yqCarrierManage/'+id,
    method: 'GET',
  })
}

//删除载体
export function yqdelete(id) {
  return request({
    url: '/cqbc/yqCarrierManage/delete?id='+id,
    method: 'DELETE',
  })
}
//载体检测
export function detection(query) {
  return request({
    url: '/cqbc/yqCarrierManage/detection',
    method: 'POST',
    params: query
  })
}